#ifndef HTTPDOWNLOAD_H
#define HTTPDOWNLOAD_H

#include <QObject>
#include <QRunnable>
#include <QUrl>
class HttpDownload : public QObject ,public QRunnable
{
    Q_OBJECT
public:
    HttpDownload(const QUrl& url , const QString localPath);
    virtual void run();
signals:
    void downloadProgress(qint64 bytesReceived,qint64 bytesTotal);
    void finished();
private:
    QUrl m_url;
    QString m_localPath;
};

#endif // HTTPDOWNLOAD_H
